<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <title>UNIS Design System v4</title>
    <meta name="author" content="">
    <meta name="generator" content="">
    <link rel="stylesheet" href="css/unis.css">
    <script src="../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../js/import-htmt.js"></script>
    <script type="text/javascript" src="../js/vue.js"></script>
    <link href="../styles/monokai_sublime.min.css" rel="stylesheet">
</head>
<body>

<template id="template1">
    <div>
        <div class=" mt-4 mb-4 " style="font-size: 18px">
            The pure CSS section does not do JS processing, (  example of applying Vue. js)
        </div>
        <div class="card text-left p-0 m-0">
            <div class="card-body  m-0">
                <div class="d-flex">
                    <div class="col m-0 flex-column">
                        <div class="unis-topBar">
                            <div class="search-box"
                                 :class="{'search-box-in':isInSearchBox}">
                                <input type="text"
                                       v-on:focus="handleFocus($event)"
                                       v-on:blur="handleBlur">
                                <div class="placeholder"
                                     :class="{'placeholder-in':isInSearchBox}">Search here
                                </div>
                                <img src="img/search.svg" alt="">
                            </div>
                            <div class="bell-box" @click.stop.prevent="onShowNotif"
                                 :class="{'active':isShowNotif}">
                                <img src="img/bell.svg" alt="">
                                <div class="hint-box">1</div>
                                <div v-show="isShowNotif" class="notifications">

                                    <div class="title-box">Notifications </div>
                                    <div class="messages_connect">
                                        <div class="messages-box">
                                            <div class="message-lable">
                                                <span>Messages (3)</span>
                                                <span class="vew-all">View All</span>
                                            </div>
                                            <div class="detal_box" v-for="item in 3">
                                                <div class="message-detals">
                                                    <div class="img-box"></div>
                                                    <div class="detal-message">
                                                        <div class="title">Nick Mahncke
                                                        </div>
                                                        <div class="name">Shipment Name
                                                        </div>
                                                        <div class="note">@User, good
                                                            afternoon and thank you for your
                                                            request.
                                                        </div>
                                                    </div>
                                                    <div class="detal-stage"></div>
                                                </div>
                                                <div class="d-flex justify-content-end align-items-center">
                                                    <div class="unis-button">Show</div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="messages-box">
                                            <div class="message-lable">
                                                <span>Tasks (1)</span>
                                                <span class="vew-all">View All</span>
                                            </div>
                                            <div class="detal_box" v-for="item in 1">
                                                <div class="message-detals">
                                                    <div class="img-box"></div>
                                                    <div class="detal-message">
                                                        <div class="title">Nick Mahncke
                                                        </div>
                                                        <div class="name">Shipment Name
                                                        </div>
                                                        <div class="note">@User, good
                                                            afternoon and thank you for your
                                                            request.
                                                        </div>
                                                    </div>
                                                    <div class="detal-stage"></div>
                                                </div>
                                                <div class="d-flex justify-content-end align-items-center">
                                                    <div class="unis-button mr-4">Mark as
                                                        read
                                                    </div>
                                                    <div class="unis-button">Show</div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>

                            </div>

                            <div class="user_box " @click.stop.prevent="onShowUser"
                                 :class="{'active':isShowUser}">
                                <div class="user">U</div>
                                <div v-show="isShowUser" class="user-connect">
                                    <div class="user-detal">
                                        <div class="title">User</div>
                                        <div class="eml">name@unisco.com</div>
                                        <div class="manage">User settings</div>
                                    </div>
                                    <div class="user-detal">
                                        <div class="title">UNIS</div>
                                        <div class="manage">Manage account</div>
                                    </div>
                                    <div class="logout">Logout</div>
                                </div>

                            </div>
                            <div v-show="isShowNotif || isShowUser" style="position: fixed; top: 0; right: 0; left: 0;
bottom: 0; z-index:0" @click.stop.prevent="closeWin"></div>
                        </div>

                    </div>
                </div>

            </div>

            <div class="row p-0 mt-3" v-show="idShowCode">
                <div class="d-flex col-12">
                    <div class="col m-0">
                    <pre>
                    <code class="lang-javascript html code">
                        <div v-html="html"></div>

                    </code>
                    </pre>
                    </div>
                </div>

            </div>

        </div>
        <div class="card-footer text-muted " style="cursor: pointer;" @click="showCode()">
            Show code
        </div>
    </div>
</template>

<script src="../js/beautify2.js" type="text/javascript"></script>
<script src="../js/beautify-css2.js" type="text/javascript"></script>
<script src="../js/beautify-html2.js" type="text/javascript"></script>
<script src="../js/highlight.min.js"></script>
<script type="text/javascript">

    var grey = Vue.extend({
      template: '#template1',
      data: function () {
        return {
          idShowCode: false,
          isShowNotif: false,
          isShowUser: false,
          isInSearchBox: false,

          'idShowCode: false,'+
          'isShowNotif: false,'+
          'isShowUser: false,'+
          'isInSearchBox: false,',
        }
      },
      beforeCreate(){
        pageBeforeCreate();
      },
      methods: {
        showCode: function () {
          this.idShowCode = !this.idShowCode;
        },
        onShowNotif: function (isfold) {
          this.isShowNotif = true;
          this.isShowUser = false;
        },
        onShowUser: function (isFoldDetails, item) {
          this.isShowNotif = false;
          this.isShowUser = true;

        },
        handleFocus: function (el) {
          this.isInSearchBox = true;

        },
        handleBlur: function (el) {
          this.isInSearchBox = false;

        },
        closeWin: function () {
          this.idShowCode = false;
          this.isShowNotif = false;
          this.isShowUser = false;
          this.isInSearchBox = false;

        }
      }
    });
    instance = new grey({
      el: document.createElement('div')
    });
    document.body.appendChild(instance.$el);

</script>
<script src="../js/cods.js"></script>
</body>
</html>


